package dhy.com.tomcat.four.core.socket;

import java.io.IOException;
import java.net.InetAddress;
import java.net.ServerSocket;

/**
 * @author 大忽悠
 * @create 2022/3/12 18:58
 */
public class DefaultServerSocketFactory implements ServerSocketFactory {
    @Override
    public ServerSocket createSocket(int port, int backlog, InetAddress address) {
        try {
            return new ServerSocket(port,backlog,address);
        } catch (IOException e) {
            e.printStackTrace();
        }
        return null;
    }
}
